Bog goldenrod grows in sunny, mildly acidic to neutral, sedge peatlands or fens, not in true acid bogs like the name implies. It is often associated with wiregrass sedge (Carex lasiocarpa) and bluejoint grass (Calamagrostis canadensis) in or near tamarack swamps.